import request from '@/utils/request'

// 查询提成配置列表
export function listCommissionConfig(query) {
  return request({
    url: '/biz/commissionConfig/list',
    method: 'get',
    params: query
  })
}

// 查询提成配置详细
export function getCommissionConfig(id) {
  return request({
    url: '/biz/commissionConfig/' + id,
    method: 'get'
  })
}

// 新增提成配置
export function addCommissionConfig(data) {
  return request({
    url: '/biz/commissionConfig',
    method: 'post',
    data: data
  })
}

// 修改提成配置
export function updateCommissionConfig(data) {
  return request({
    url: '/biz/commissionConfig',
    method: 'put',
    data: data
  })
}

// 删除提成配置
export function delCommissionConfig(id) {
  return request({
    url: '/biz/commissionConfig/' + id,
    method: 'delete'
  })
}
